//
//  PKRadioDetailTableViewCell.m
//  PianKe
//
//  Created by luojinrong11 on 15/10/4.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "PKRadioDetailTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation PKRadioDetailTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _coverimage =[[UIImageView alloc]initWithFrame:CGRectMake(20, 0, 60, 60)];
        [self.contentView addSubview:_coverimage];
        _titleLable =[[UILabel alloc]initWithFrame:CGRectMake(90, 0, 250, 30)];
        [self.contentView addSubview:_titleLable];
        _musicVisitLable=[[UILabel alloc]initWithFrame:CGRectMake(90, 40, 100, 30)];
        [self.contentView addSubview:_musicVisitLable];
        _playerImage=[[UIImageView alloc]initWithFrame:CGRectMake(320, 20, 30, 30)];
        _playerImage.image=[UIImage imageNamed:@"iconfont-bofang"];
        [self.contentView addSubview:_playerImage];
    }
    return self;
}
-(void)setDetailModel:(PKRadioDetailModel *)detailModel
{
    _detailModel=detailModel;
    [self.coverimage sd_setImageWithURL:[NSURL URLWithString:detailModel.coverimg]];
    NSString *titleString=detailModel.playInfo.title;
    self.titleLable.text=titleString;
    self.musicVisitLable.text=detailModel.musicVisit;
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
